package main

import (
	"gin-proxy/biz/global"
	"gin-proxy/biz/proxy"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.Use(global.ErrorHandler())
	register(r)
	go proxy.Run()
	err := r.Run(":9100")
	if err != nil {
		panic(err)
	}
}
